<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>客户列表</title>
<link href="/resources/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href="/resources/lib/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
<script src="/resources/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/ex/ligerGrid.showFilter.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/ex/ligerFilterEx.js" type="text/javascript"></script>
<script type="text/javascript">
        var $grid;
        $(function (){
            $grid = $("#maingrid").ligerGrid({
                columns: [
                { display: '物料名称', name: 'material.name', width: 140,type:"text"},
                { display: '物料编码', name: 'material.number', width: 140,type:"text"},
                { display: '计量单位', name: 'material.baseUnit.name', width: 100,type:"text"},
                { display: '累计入库数量', name: 'inQty', width: 100,type:"text"},
                { display: '累计出库数量', name: 'outQty', width: 100,type:"text"},
                { display: '累计盘点数量', name: 'checkQty', width: 100,type:"text"},
                { display: '库存总数量', name: 'qty', width: 100,type:"text",render: function (item)
                    {
                    return item.inQty - item.outQty - item.checkQty;
                }},
                ],
                width: '100%', height: '100%',
                usePager:false,
                headerRowHeight:22, rowHeight:22, rownumbers:true,
                url:'/sysReport/listInventoryReportData',
            });

        });
    </script>
</head>
<body  style="padding:10px">
    <div id="maingrid"></div> 
</body>
</html>
